package com.example.project.service.impl;

import com.example.project.dao.TableBDao;
import com.example.project.entity.TableB;
import com.example.project.service.TableBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Ethan on 2022-08-25 18:18
 */
@Service
public class TableBServiceImpl implements TableBService {
    @Autowired
    private TableBDao tableBDao;

    @Override
    public List<TableB> findAll() {
        return tableBDao.findAll();
    }

    @Override
    public void saveTableB(TableB tableB) {
        tableBDao.saveTableB(tableB);
    }

    @Override
    public void deleteByC(String c) {
        tableBDao.deleteByC(c);
    }

    @Override
    public void update(TableB tableB) {
        tableBDao.update(tableB);
    }
}
